<template>
  <div class="todo-container">
    <div class="todo-wrap">
      <Header />
      <Main :todos="todos"/>
      <Footer />
      
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";

export default defineComponent({
  name: "App",
});
</script>

<script setup lang="ts">
  import Header from './components/header/index.vue'
  import Main from './components/main/index.vue'
  import Footer from './components/footer/index.vue'
  export interface todoItemType{
    id:string;
    title:string;
    comment:boolean
  }
  export type todosType = todoItemType[]
  const todos = ref<todosType>([
    {id:'1',title:'吃饭',comment:false},
    {id:'2',title:'睡觉',comment:true},
    {id:'3',title:'唱歌',comment:false},
    {id:'4',title:'跳舞',comment:false},
  ])
</script>

<style >
body {
  background: pink;
}

.btn {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
  border-radius: 4px;
}

.btn-danger {
  color: #fff;
  background-color: #da4f49;
  border: 1px solid #bd362f;
}

.btn-danger:hover {
  color: #fff;
  background-color: #bd362f;
}
.btn:focus {
  box-shadow: none;
}

/*app*/
.todo-container {
  width: 600px;
  margin: 0 auto;
}
.todo-container .todo-wrap {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
</style>
